package com.sidianzhong.sdz.model;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class WebEquipmentonoffrecord implements Serializable {
    private Integer id;

    private String equipmenttypekey;

    private String equipmentkey;

    private Date turnonofftime;

    private Integer operatingtype;

    private Date recordtime;

    private String staffname;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEquipmenttypekey() {
        return equipmenttypekey;
    }

    public void setEquipmenttypekey(String equipmenttypekey) {
        this.equipmenttypekey = equipmenttypekey;
    }

    public String getEquipmentkey() {
        return equipmentkey;
    }

    public void setEquipmentkey(String equipmentkey) {
        this.equipmentkey = equipmentkey;
    }

    public Date getTurnonofftime() {
        return turnonofftime;
    }

    public void setTurnonofftime(Date turnonofftime) {
        this.turnonofftime = turnonofftime;
    }

    public Integer getOperatingtype() {
        return operatingtype;
    }

    public void setOperatingtype(Integer operatingtype) {
        this.operatingtype = operatingtype;
    }

    public Date getRecordtime() {
        return recordtime;
    }

    public void setRecordtime(Date recordtime) {
        this.recordtime = recordtime;
    }

    public String getStaffname() {
        return staffname;
    }

    public void setStaffname(String staffname) {
        this.staffname = staffname;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WebEquipmentonoffrecord other = (WebEquipmentonoffrecord) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getEquipmenttypekey() == null ? other.getEquipmenttypekey() == null : this.getEquipmenttypekey().equals(other.getEquipmenttypekey()))
            && (this.getEquipmentkey() == null ? other.getEquipmentkey() == null : this.getEquipmentkey().equals(other.getEquipmentkey()))
            && (this.getTurnonofftime() == null ? other.getTurnonofftime() == null : this.getTurnonofftime().equals(other.getTurnonofftime()))
            && (this.getOperatingtype() == null ? other.getOperatingtype() == null : this.getOperatingtype().equals(other.getOperatingtype()))
            && (this.getRecordtime() == null ? other.getRecordtime() == null : this.getRecordtime().equals(other.getRecordtime()))
            && (this.getStaffname() == null ? other.getStaffname() == null : this.getStaffname().equals(other.getStaffname()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getEquipmenttypekey() == null) ? 0 : getEquipmenttypekey().hashCode());
        result = prime * result + ((getEquipmentkey() == null) ? 0 : getEquipmentkey().hashCode());
        result = prime * result + ((getTurnonofftime() == null) ? 0 : getTurnonofftime().hashCode());
        result = prime * result + ((getOperatingtype() == null) ? 0 : getOperatingtype().hashCode());
        result = prime * result + ((getRecordtime() == null) ? 0 : getRecordtime().hashCode());
        result = prime * result + ((getStaffname() == null) ? 0 : getStaffname().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", equipmenttypekey=").append(equipmenttypekey);
        sb.append(", equipmentkey=").append(equipmentkey);
        sb.append(", turnonofftime=").append(turnonofftime);
        sb.append(", operatingtype=").append(operatingtype);
        sb.append(", recordtime=").append(recordtime);
        sb.append(", staffname=").append(staffname);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}